/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.uniscol.siecle.model;

import java.io.Serializable;
import java.util.Objects;

/**
 *
 * @author Christophe
 */
public class CorrespondanceSiecleSts implements Serializable {
    
    public static final String CORRESPONDANCE_DIVISION = "DIV";
    public static final String CORRESPONDANCE_MATIERE = "MAT";
    public static final String CORRESPONDANCE_GROUPE = "GRP";
    
    private long id = 0;
    
    private String idSiecle = null;
    
    private String idSts = null;
    
    private String type = null;
    
    private int nbOccurences = 0;
    
    public CorrespondanceSiecleSts(){
    }
    
    public CorrespondanceSiecleSts(String idSiecle, String idSts, String type){
        this.idSiecle = idSiecle;
        this.idSts = idSts;
        this.type = type;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getIdSiecle() {
        return idSiecle;
    }

    public void setIdSiecle(String idSiecle) {
        this.idSiecle = idSiecle;
    }

    public String getIdSts() {
        return idSts;
    }

    public void setIdSts(String idSts) {
        this.idSts = idSts;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }    

    public int getNbOccurences() {
        return nbOccurences;
    }

    public void setNbOccurences(int nbOccurences) {
        this.nbOccurences = nbOccurences;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CorrespondanceSiecleSts other = (CorrespondanceSiecleSts) obj;
        if (!Objects.equals(this.idSiecle, other.idSiecle)) {
            return false;
        }
        if (!Objects.equals(this.idSts, other.idSts)) {
            return false;
        }
        if (!Objects.equals(this.type, other.type)) {
            return false;
        }
        return true;
    }
}
